//
//  XTGoods.m
//  BeautifulHome
//
//  Created by dlios on 15-5-15.
//  Copyright (c) 2015年 ACE. All rights reserved.
//

#import "XTGoods.h"

@implementation XTGoods
- (void)dealloc
{
    [_addresses release];
    [_title release];
    [_images release];
    [_price release];
    [super dealloc];
}
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.addresses forKey:@"address"];
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.images forKey:@"images"];
    [aCoder encodeObject:self.price forKey:@"price"];
    
}
- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self) {
        self.addresses = [aDecoder decodeObjectForKey:@"address"];
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.images = [aDecoder decodeObjectForKey:@"images"];
        self.price = [aDecoder decodeObjectForKey:@"price"];
    }
    return self;
}
- (instancetype)getData:(NSMutableDictionary *)mDic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:mDic];
        
    }
    return self;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

@end
